package com.woniu.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Rain
 * @Description :
 * @date 2022/08/26 15:19
 */
@Configuration
public class HelloWorld {
    @Value("${my.message}")
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Bean
    public Chinese chinese() {
        return new Chinese(message);
    }
}
